"""
uchburchaklar
"""
S = '####################################'
A = '''000  0 000   00  00 00 0 000   00
 0  0 0 0  0 0  0 0 0 0 0 0  0 0  0'''
P = ''' 000  0 000  0000 0   0 0 0  0 0000
 0    0 0  0 0  0 0   0 0 000  0  0'''
print(S + '\n', A.replace('0', '$') + '\n', end = '')
print(P, '\n' + S + '\n')

i = -1
while i <= 18:
    i += 2
    print((i * '$').center(35))
print('\n')

i = -1
while i <= 18:
    i += 2
    print((18 * '$').center(35))
print('\n')

i = -1
while i <= 18:
    i += 2
    print((i * '$').center(35))

i = -1
while i <= 18:
    i += 2
    print(((18 -i) * '$').center(35))

i = 9
while i <= 18:
    i += 2
    print((i * '$').center(35))

i = -1
while i <= 5:
    i += 2
    print(((18 -i) * '$').center(35))
print()
